package com.xufx.thread.liaoxuefeng.thread7_deadLock;

public class DeadLockDemo {

    public static void main(String[] args) {
         Object object1 = new Object();
         Object object2 = new Object();
        Thread t1 = new Thread(new DeadLockTask(object1, object2, false), "thread-1");
        Thread t2 = new Thread(new DeadLockTask(object1, object2, true), "thread-2");

        t1.start();
        t2.start();
    }

}
